<?php 
    if($detail_category->num_rows()>0)
    {
       $row= $detail_category->row();
    }
?>
<div id="sidebar" align="left">
    <div id="titre_sidebar">SITE WEB</div>
    <div align="left">
        <ul>
            <?php
                if ($this->session->userdata('adminid')) {
                    $adminid = $this->session->userdata('adminid');
                ?>
                <li><a href="<?php echo site_url('product_admin/list_products'); ?>">Products</a></li>

                <?php } ?>
        </ul>
    </div>
</div>
<div id="wrapper-content">
    <div id="view_profile" align="center">
        <div align="center" id="title_view_profile" >INFORMATION CATEGORY</div>
        <?php echo form_open_multipart(site_url('product_admin/edit_category'). '/' . $row->id); ?>
        <table align="center" id="form_profile" cellpadding="10px" cellspacing="0">
            <tr>
                <td>Name:</td>
                <td><input type="text" name="name" size="30" value=" <?php echo $row->nomfr; ?>"></td>
                <td><?php echo form_error('name') ?><td>      
            </tr>
             <tr>
                <td>Price:</td>
                <td><input type="text" size="30" name="parent" value=" <?php echo $row->parent; ?>"></td>
                <td><?php echo form_error('parent') ?><td>    
            </tr>
            <tr>
                <td><input type="submit" name="submit" value="Update"/></td>
            </tr>
        </table>
    </div>
    <?php echo form_close() ?>

</div>
